<template>
  <view class="container">
    <view class="title">图标练习展示</view>
    
    <!-- 第一组图标 -->
    <view class="icon-group">
      <view class="icon-item">
        <icon type="success"></icon>
        <text class="icon-name">success</text>
      </view>
      <view class="icon-item">
        <icon type="success_no_circle"></icon>
        <text class="icon-name">success_no_circle</text>
      </view>
	  <view class="icon-item">
	    <icon type="warn"></icon>
	    <text class="icon-name">warn</text>
	  </view>
	  <view class="icon-item">
	    <icon type="cancel"></icon>
	    <text class="icon-name">cancel</text>
	  </view>
	  <view class="icon-item">
	    <icon type="waiting"></icon>
	    <text class="icon-name">waiting</text>
	  </view>
	  <view class="icon-item">
	    <icon type="download"></icon>
	    <text class="icon-name">download</text>
	  </view>
	  <view class="icon-item">
	    <icon type="search"></icon>
	    <text class="icon-name">search</text>
	  </view>
	  <view class="icon-item">
	    <icon type="clear"></icon>
	    <text class="icon-name">clear</text>
	  </view>
    </view>
  </view>
</template>

<script>
export default {
  data() {
    return {
      // 图标练习数据
    };
  },
  onLoad() {
    // 页面加载时的初始化操作
  }
};
</script>

<style>
.container {
  padding: 20rpx;
  background-color: #f5f5f5;
  min-height: 100vh;
}

.title {
  font-size: 36rpx;
  font-weight: bold;
  color: #333;
  padding: 20rpx 0;
  margin-bottom: 30rpx;
  border-bottom: 1px solid #eee;
}

.icon-group {
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  padding: 10rpx;
  margin-bottom: 30rpx;
  background-color: #fff;
  border-radius: 10rpx;
}

.icon-item {
	
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 25%;
  padding: 20rpx 0;
}

.icon {
  font-size: 60rpx;
  margin-bottom: 10rpx;
  color: #3498db;
}

.icon-name {
  font-size: 24rpx;
  color: #666;
}

/* 自定义CSS图标样式 */
.custom-icon {
  width: 60rpx;
  height: 60rpx;
  margin-bottom: 10rpx;
}

.custom-icon-heart {
  position: relative;
  transform: rotate(-45deg);
  background-color: #e74c3c;
}

.custom-icon-heart::before,
.custom-icon-heart::after {
  content: '';
  width: 60rpx;
  height: 60rpx;
  border-radius: 50%;
  background-color: #e74c3c;
  position: absolute;
}

.custom-icon-heart::before {
  top: -30rpx;
  left: 0;
}

.custom-icon-heart::after {
  top: 0;
  left: 30rpx;
}

.custom-icon-star {
  position: relative;
  color: #f1c40f;
}

.custom-icon-star::before {
  content: '★';
  font-size: 60rpx;
}

.custom-icon-arrow {
  border: solid #2ecc71;
  border-width: 0 8rpx 8rpx 0;
  transform: rotate(-45deg);
  padding: 15rpx;
}

.custom-icon-check {
  position: relative;
  width: 60rpx;
  height: 30rpx;
  border-bottom: 8rpx solid #27ae60;
  border-right: 8rpx solid #27ae60;
  transform: rotate(45deg);
  margin-left: 10rpx;
}
</style>
